import {
  createApp
} from 'vue'
import App from './App.vue'

import router from '@/router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn' //中文
import locale from 'element-plus/es/locale/lang/zh-cn' //中文
import * as ElIcons from '@element-plus/icons-vue'
import './styles/common.scss';
import store from './store/index'

var cesium = require('cesium/Cesium.js');
var widgets = require('cesium/Widgets/widgets.css');
import CesiumNavigation from './assets/dist/CesiumNavigation.js'
const app = createApp(App)
// 统一注册Icon图标
for (const iconName in ElIcons) {
  app.component(iconName, ElIcons[iconName])
}
window.Cesium = cesium;
window.CesiumNavigation = CesiumNavigation;

app.use(ElementPlus, {
  locale
});
app.use(router)
app.use(store)
app.mount('#app')